package com.tsxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tsxy.entity.Book;
import com.tsxy.mapper.BookMapper;
import com.tsxy.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 飞
 * @since 2022-02-03
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {
    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> getAll() {
        List<Book> list = bookMapper.getAll();
        return list;
    }
}
